package com.java.jvm;

public class LambdaTests {
    public static void main(String[] args) {
        new Thread(new Runnable() {
            @Override
            public void run() {
                System.out.println("thread is running");
            }
        }).start();

        //下面这段代码与上面的代码是等效
        new Thread(()->System.out.println("thread is running")).start();
    }
}
